package com.chen.controller;


import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.chen.commons.Result;
import com.chen.entity.Echarts;
import com.chen.mapper.EchartsMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/area")
public class EchartsController {

    @Resource
    private EchartsMapper echartsMapper;

    @GetMapping
    public Result<?> queryList(){
        List<Echarts> echarts = echartsMapper.selectList(Wrappers.lambdaQuery());
        return Result.success(echarts);
    }

}
